package com.guigu.youxuan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.youxuan.mapper.BackMenuMapper;
import com.guigu.youxuan.pojo.BackMenu;
import com.guigu.youxuan.service.IBackMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Service
public class BackMenuServiceImpl extends ServiceImpl<BackMenuMapper, BackMenu> implements IBackMenuService {

    @Autowired
    private BackMenuMapper backMenuMapper;


    @Override
    public List<BackMenu> getBackMenuList(Long userId) {
        List<BackMenu> backMenuList = backMenuMapper.getMenuListByUserId(userId);
        return backMenuList;
    }

    @Override
    public List<BackMenu> queryBackMenuList() {
        List<BackMenu> list = this.list();
        return list;
    }

}
